package cn.xorange.commons.utils.configuration.constants;

/**
 * @author : yangjian
 * @date : 2022/5/20
 */
public class ThirdAppConstants {
    private ThirdAppConstants(){}


    /** 微信用户凭证openId获取地址 返回openId，unionId, sessionKey */
    public static final String WX_OPENID_URL = "https://api.weixin.qq.com/sns/jscode2session";
    /** 微信接口调用凭证 AccessToken获取地址 有效期7200s 2小时  accessToken expiresIn*/
    public static final String WX_ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&";



    /** 微信预支付请求地址 */
    public static final String WX_PREPAY_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";
    /** 微信查询订单地址 */
    public static final String WX_ORDER_URL = "https://api.mch.weixin.qq.com/pay/orderquery";
    /** 微信关闭订单地址 */
    public static final String WX_CLOSE_ORDER_URL = "https://api.mch.weixin.qq.com/pay/closeorder";
    /** 微信申请退款地址 */
    public static final String WX_REFUND_URL = "https://api.mch.weixin.qq.com/secapi/pay/refund";
    /** 微信查询退款地址 */
    public static final String WX_REFUND_QUERY_URL = "https://api.mch.weixin.qq.com/pay/refundquery";
    /** 微信下载账单地址 */
    public static final String WX_DOWNLOAD_BILL_URL = "https://api.mch.weixin.qq.com/pay/downloadbill";


    public final static String wxTokenKey = "wxToken:";

    public final static Long wxTokenExpire = 7200L;
}
